package com.ruoyi.StarStudio.Entity;

import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

/*
  商品种类实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("unused")
public class Goods {

    @Excel(name = "商品ID")
    private long goods_id; //商品ID
    @Excel(name = "商家ID")
    private long store_id; //商家ID
    @Excel(name = "商品名称")
    private String goods_name; //商品名称
    @Excel(name = "商品描述")
    private String goods_describe; //商品描述
    @Excel(name = "商品星级")
    private int star; //商品星级
    @Excel(name = "商品价格（鲜豆）")
    private int goods_price; //商品价格（鲜豆）
    @Excel(name = "商品市场价（人民币）")
    private double market_price; //商品市场价（人民币）
    private String goods_main_picture; //商品概览图片地址
    @Excel(name = "商品库存")
    private int stock; //商品库存
    @Excel(name = "兑换截止日期")
    private Timestamp exchange_deadline; //兑换截止日期
    @Excel(name = "注意事项")
    private String attention; //注意事项
    @Excel(name = "更新时间")
    private Timestamp update_time; //更新时间
    private boolean del_flag; //删除标志（ 0未删除，1已删除）

    private Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
